package NGUYENMINHHIEU.SERIZABLEFILES;

import java.util.List;

public class CONTROLLERS {
    private MODELS m_objModels;
    
    public CONTROLLERS(){
        m_objModels = new MODELS();
    }
    
    public boolean WriteObjects(List<Student> lisStudent,
            String resource, String fileName) throws Exception {
        return m_objModels.WriteListObjectIntoFiles(lisStudent, resource, fileName);
    }
    
    public List<Student> ReadObjects(String resource, String fileName) 
            throws Exception {
        return m_objModels.ReadListObjectIntoFiles(resource, fileName);
    }
}
